com.prosc.supercontainer.plugin
Class FileChooserOptions

java.lang.Object
  extended by com.prosc.supercontainer.plugin.FileChooserOptions

public final class FileChooserOptions
extends java.lang.Object

Flags to control file chooser behavior for the SCPluginModel.chooseFile(java.awt.Component, java.io.File, int, java.lang.String) method.


Constructor Summary
FileChooserOptions()
          Default constructor.
FileChooserOptions(java.io.File initialDir, int fileSelectionMode, java.lang.String title)
          Constructor for setting common parameters
 
Method Summary
 int getFileSelectionMode()
           
 java.io.File getInitialDir()
           
 java.lang.String getTitle()
           
 boolean isUseNative()
           
 void setFileSelectionMode(int fileSelectionMode)
          JFileChooser.FILES_ONLY, JFileChooser.DIRECTORIES_ONLY, JFileChooser.FILES_AND_DIRECTORIES.
 void setInitialDir(java.io.File initialDir)
           
 void setTitle(java.lang.String title)
           
 void setUseNative(boolean useNative)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooserOptions

public FileChooserOptions()
Default constructor.


FileChooserOptions

public FileChooserOptions(java.io.File initialDir,
                          int fileSelectionMode,
                          java.lang.String title)
Constructor for setting common parameters

Parameters:
initialDir - the initial directory
fileSelectionMode - file selection mode, one of the file constants from JFileChooser.
title - title of the file chooser dialog
Method Detail

getFileSelectionMode

public int getFileSelectionMode()
Returns:
one of the file constants from JFileChooser.

getInitialDir

public java.io.File getInitialDir()
Returns:
the initial directory to display

getTitle

public java.lang.String getTitle()
Returns:
dialog title

isUseNative

public boolean isUseNative()
Returns:
whether to attempt to use a native FileDialog as opposed to a JFileChooser.

setFileSelectionMode

public void setFileSelectionMode(int fileSelectionMode)
JFileChooser.FILES_ONLY, JFileChooser.DIRECTORIES_ONLY, JFileChooser.FILES_AND_DIRECTORIES.

Parameters:
fileSelectionMode - one of the file constants from JFileChooser.
See Also:
JFileChooser

setInitialDir

public void setInitialDir(java.io.File initialDir)
Parameters:
initialDir - the initial directory to display

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - dialog title

setUseNative

public void setUseNative(boolean useNative)
Parameters:
useNative - whether to attempt to use a native FileDialog as opposed to a JFileChooser.